<?php
/**
 * Created by PhpStorm.
 * User: woddp
 * Date: 2017/2/18
 * Time: 21:06
 */

//获取网站根网址
function getRootUrl(){
    return $_SERVER['HTTP_ORIGIN'];
}
//获取json 返回消息
function jsonData($status,$msg){
    echo ['status'=>$status,'msg'=>$msg];
}